//SafeFactory��
package cn.edu.scau.cmi.yangzhichao.abstractFactory.factory;

import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.SafeBodyInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.SafeCarInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.SafeHurtInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.SafeTypesInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.BodyInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.CarInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.HurtInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.TypesInsurance;

/**
 * Created by yzc on 2019/3/28.
 */
public class SafeFactory extends InsuranceFactory{

    @Override
    public void show() {

    }

    @Override
    public BodyInsurance createBodyInsurance() {
        BodyInsurance bodyInsurance=new SafeBodyInsurance();
        return bodyInsurance;
    }

    @Override
    public CarInsurance createCarInsurance() {
        CarInsurance carInsurance=new SafeCarInsurance();
        return carInsurance;
    }

    @Override
    public HurtInsurance createHurtInsurance() {
        HurtInsurance hurtInsurance=new SafeHurtInsurance();
        return hurtInsurance;
    }

    @Override
    public TypesInsurance createTypesInsurance() {
        TypesInsurance typesInsurance=new SafeTypesInsurance();
        return typesInsurance;
    }
}
